package com.waterms.util;

/**
 * 
 * @author Administrator
 *current_page
	The page that is selected when the pagination is initialized. Default: 0
items_per_page
	The number of items per page. The maximum number of pages is calculated by 
	dividing the number of items by items_per_page (rounded up, minimum 1). 
	Default: 10
link_to
	Link target of the pagination links. Normally the page selection is 
	triggered through an onclick event. If the link contains the string 
	``__id__``, it will be replaced with the page number. Default: ``#``
num_display_entries
	Maximum number of pagination links that are visible. Set to 0 to display a
	 simple "Previous/Next"-Navigation. Default: 10
next_text
	Text for the "Next"-link that increases the current page number by 1. 
	Leave blank to hide the link. Default: ``Next``
next_show_always
	If this is set to false, the "Next"-link is only shown when the page number 
	can be increased. Default: true
prev_text
	Text for the "Previous"-link that decreases the current page number by 1. 
	Leave blank to hide the link. Default: ``Previous``
prev_show_always
	If this is set to false, the "Previous"-link is only shown when the page 
	number can be decreased. Default: true
num_edge_entries
	If this number is set to 1, links to the first and the last page are always 
	shown, independent of the current position and the visibility constraints 
	set by num_display_entries. You can set it to bigger numbers to show more 
	links. Default: 0
num_of_items
	number of items for all entity
	
	jquery-pagination 配置信息，用于分页显示
 */
public class Pagination {
	private int current_page;
	private int items_per_page;
	private int num_display_entries;
	private String next_text;
	private boolean next_show_always;
	private String prev_text;
	private boolean prev_show_always;
	private int num_edge_entries;
	private int num_of_items;
	
	public Pagination() 
	{
		current_page = 0;
		items_per_page = 5;
		num_display_entries = 10;
		next_text = "下一页";
		next_show_always = true;
		prev_text = "上一页";
		prev_show_always = true;
		num_edge_entries = 1;
	}
	
	
	public int getNum_of_items() {
		return num_of_items;
	}


	public void setNum_of_items(int num_of_items) {
		this.num_of_items = num_of_items;
	}


	public int getCurrent_page() {
		return current_page;
	}
	public void setCurrent_page(int current_page) {
		this.current_page = current_page;
	}
	public int getItems_per_page() {
		return items_per_page;
	}
	public void setItems_per_page(int items_per_page) {
		this.items_per_page = items_per_page;
	}
	public int getNum_display_entries() {
		return num_display_entries;
	}
	public void setNum_display_entries(int num_display_entries) {
		this.num_display_entries = num_display_entries;
	}
	public String getNext_text() {
		return next_text;
	}
	public void setNext_text(String next_text) {
		this.next_text = next_text;
	}
	public boolean isNext_show_always() {
		return next_show_always;
	}
	public void setNext_show_always(boolean next_show_always) {
		this.next_show_always = next_show_always;
	}
	public String getPrev_text() {
		return prev_text;
	}
	public void setPrev_text(String prev_text) {
		this.prev_text = prev_text;
	}
	public boolean isPrev_show_always() {
		return prev_show_always;
	}
	public void setPrev_show_always(boolean prev_show_always) {
		this.prev_show_always = prev_show_always;
	}
	public int getNum_edge_entries() {
		return num_edge_entries;
	}
	public void setNum_edge_entries(int num_edge_entries) {
		this.num_edge_entries = num_edge_entries;
	}
	
	
	
	

}













